<?php
class CommonController extends Controller{
	public function __init(){
		if(!isset($_SESSION['aid']) || !isset($_SESSION['adminname'])){
			go(U('Login/index'));
		}
	}
}